/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package de.tordroid.model;

import java.util.ArrayList;
import java.util.List;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

/**
 *
 * @author Christian Simon
 */
@Root
public class CharacterClass {

    @Element
    private String titel;
    @ElementList
    private List<Companion> companions;
    @ElementList(required=false)
    private List<ExtendedClass> extendedClasses;
    @Element(required = false)
    private ExtendedClass extendedClass;

    public CharacterClass(String titel) {
        this();
        this.titel = titel;
    }

    public CharacterClass(CharacterClass characterClass) {
    }

    public CharacterClass() {
        this.titel = "None";
        this.companions = new ArrayList<Companion>();
        this.extendedClasses = new ArrayList<ExtendedClass>();
        this.extendedClass = new ExtendedClass();
    }

    public enum Classes {

        Agent,
        Bountyhunter,
        Consular,
        Inquisitor,
        Knight,
        Smuggler,
        Soldier,
        Warrior
    }

    /**
     * @return the titel
     */
    public String getTitel() {
        return titel;
    }

    /**
     * @param titel the titel to set
     */
    public void setTitel(String titel) {
        this.titel = titel;
    }

    /**
     * @return the companions
     */
    public List<Companion> getCompanions() {
        return companions;
    }

    /**
     * @param companions the companions to set
     */
    public void setCompanions(List<Companion> companions) {
        this.companions = companions;
    }

    /**
     * @return the extendedClasses
     */
    public List<ExtendedClass> getExtendedClasses() {
        return extendedClasses;
    }

    /**
     * @param extendedClasses the extendedClasses to set
     */
    public void setExtendedClasses(List<ExtendedClass> extendedClasses) {
        this.extendedClasses = extendedClasses;
    }
}
